﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="JT_SaleZC.aspx.cs" Inherits="JTicket.UI.JT_SaleZC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/jscript">
    //添加
    function Add() {
        if ($('#txtTitle').val() == "") {
            alert("请输入剧目名称"); $("#txtTitle").focus(); return false;
        }
        if ($('#txtTeam').val() == "") {
            alert("请输入剧目名称"); $("#txtTeam").focus(); return false;
        } 
        if ($('#txtBegin').val() == "") {
            alert("请输入演出开始时间"); $("#txtBegin").focus(); return false;
        }
        if ($('#txtTilteNum').val() == "-1") {
            alert("请选择剧目状态"); $("#txtTilteNum").focus(); return false;
        }
        var model = new JTicket.Model.D_TitleInfo();
         
        model.Stitlename = $("#txtTitle").val();
        model.Steam = $("#txtTeam").val();
        model.Stheater = $("#seTheater").find("option:selected").text();
        model.Stitlesort = $("#seSort").find("option:selected").text();
        model.StitleInfo = $('#txtarea').val();
        model.Begindate = $('#txtBegin').val();
        model.EndDate = $('#txtEnd').val();
        model.TitleNum = $('#txtTilteNum').val();
        model.ThCode = $('#seTheater').val();
        model.Actor = $('#txtactor').val();
        model.note = $('#SeStuts').val();
        $("#BtnAdd").attr("disabled", "disabled");
        JTicket.UI.Service.JT_TitleSvc.Add(model,
            function Success(Result) {
                alert(Result);
                $("#BtnAdd").removeAttr("disabled");
                window.location.reload();
            }, isAlertError);
    }

</script>



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table align="center" border="0" cellpadding="4" cellspacing="1" 
        class="toptable grid" width="100%">
        <tr>
            <td class="category t2" height="25" width="100">
               项目销售政策</td>
            <td class="category" height="25">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
     <table width="100%" border="0" bordercolordark="#3890B5" bordercolorlight="#6591BE"
        align="center" cellpadding="1" cellspacing="1">
        <tr>
            <td bgcolor="#f6f6f6" align="right" style="width: 100px">
                套票编号：
            </td>
            <td align="left" bgcolor="#f6f6f6" style="width: 240px">
                <asp:TextBox ID="TextBox1" runat="server" Enabled="False" EnableTheming="True"></asp:TextBox>
            </td>
            <td align="right" bgcolor="#f6f6f6" height="25" style="width: 100px">
                套票名称：
            </td>
            <td align="left" bgcolor="#f6f6f6">
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" bgcolor="#f6f6f6" style="width: 100px">
                套票价格：
            </td>
            <td align="left" bgcolor="#f6f6f6">
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </td>
            <td align="right" bgcolor="#f6f6f6" height="25" style="width: 100px">
                &nbsp;</td>
            <td align="left" bgcolor="#f6f6f6">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" bgcolor="#f6f6f6" style="width: 100px; height: 30px;">
                组合方式：
            </td>
            <td align="left" bgcolor="#f6f6f6" style="height: 30px" colspan="3">
                <asp:TextBox ID="TextBox4" runat="server" Width="300px"></asp:TextBox>
&nbsp;(格式：票类|票类)</td>
        </tr>
        <tr>
            <td align="center" bgcolor="#f6f6f6" style="width: 100px">
            </td>
            <td align="left" bgcolor="#f6f6f6" colspan="2">
                <asp:Button ID="BtnAdd" runat="server" CssClass="submitMiniGreen" 
                    onmousemove="showBtnOver(this)" 
                    onmouseout="showBtnOut(this)" Text="添  加" onclick="BtnAdd_Click" />
                <asp:Button ID="BtnAdd0" runat="server" CssClass="submitMiniGreen" 
                    onmousemove="showBtnOver(this)" 
                    onmouseout="showBtnOut(this)" Text="返 回" onclick="BtnAdd0_Click" />
            </td>
            <td align="left" bgcolor="#f6f6f6">
            </td>
        </tr>
    </table> 
     <asp:DataGrid ID="dg1" runat="server" AutoGenerateColumns="False" CellPadding="0"
          Width="100%" >
            <HeaderStyle BackColor="#3890B5" Height="25px" HorizontalAlign="Center" />
            <ItemStyle BackColor="#F6F6F6" Height="25px" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateColumn HeaderText="演出编号">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "concertcode")%>
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="套票编号">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "taocode")%>
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="套票名称">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "taoname")%>
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="价格">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "taoprice")%>
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="组合方式">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "TaoPortfolio")%>
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn> 
                <asp:TemplateColumn HeaderText="操作">
                    <ItemTemplate>
                         删除
                    </ItemTemplate>
                    <HeaderStyle CssClass="B" />
                </asp:TemplateColumn>
            </Columns>
            <PagerStyle Visible="False" />
        </asp:DataGrid>

</asp:Content>
